<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>我的购物车 - ${web.name}${web.additionalTitle!}</title>
    <link href="${root}/css/global.css" type="text/css" rel="stylesheet"/>
    <link href="${root}/css/layout.css" type="text/css" rel="stylesheet"/>
    <link href="${root}/css/checkout.css" type="text/css" rel="stylesheet"/>
    <link href="${root}/css/member.css" type="text/css" rel="stylesheet"/>
    <link href="${root}/css/buy.css" type="text/css" rel="stylesheet"/>
    <link href="${root}/css/cart.css" type="text/css" rel="stylesheet"/>
    <script src="${root}/js/jquery.js" type="text/javascript"></script>
    <script src="${root}/js/cart_sure.js" type="text/javascript"></script>
    <script type="text/javascript">
        var URLPrefix = {
            "url": "${base}"
        };
    </script>
</head>
<body>
[#include "../include/header_top.html"/]
<div id="head">
    [#include "../include/header_search.html"/]
    [#include "../include/header_nav.html"/]
</div>
<div class="w960">
    <div id="topcolumn"></div>
    <div class="buy_position">您当前的位置：<a href="" target="_blank">首页</a>&nbsp;&gt;&nbsp;成功提交订单</div>
    <ul class="step clearfix mt10">
        <li><span>STEP 1.</span>查看购物车</li>
        <li><span>STEP 2.</span>确认订单信息</li>
        <li class="on"><span>STEP 3.</span>成功提交订单</li>
    </ul>
    <div class="order">
        <div class="result">
            [#if order??]
            <div class="title">您的订单已提交成功，[#if order.payment??][#if
                order.payment.type=1]正在等待您的付款！[#else]正在等待处理！[/#if][/#if]
            </div>
            <table>
                <tr>
                    <th colspan="4">订单信息:</th>
                </tr>
                <tr>
                    <td width="100">订单编号:</td>
                    <td width="340">
                        <strong>${order.code}</strong>
                        <a href="myOrderView.htm?orderId=${order.id}">[查看订单]</a>
                    </td>
                    <td width="100">应付金额:</td>
                    <td>
                        <strong id="amountPayable">￥${order.total!0}元</strong>
                    </td>
                </tr>
                <tr>
                    <td>配送方式:</td>
                    <td>[#if order.shipping??]${order.shipping.name}[/#if]</td>
                    <td>支付方式:</td>
                    <td>[#if order.payment??]${order.payment.name}[/#if]</td>
                </tr>

                [#if order.payment??][#if order.payment.type=1]
                <tr>
                    <td colspan="4">请您在提交订单后<span style="color:red">24小时</span>内完成支付，否则订单会自动取消。</td>
                </tr>
                [/#if][/#if]


            </table>
            [#if order.payment??]
            [#if order.payment.type=1]
            <form id="baseForm" action="${base}/pay.htm" method="post">
                <table class="paymentPlugin">
                    <tr>
                        <th>支付方式:</th>
                    </tr>
                    <tr>
                        [#list list as p]
                        <td>
                            <input type="radio" name="code" value="${p.code!}" [#if p_index=0]checked[/#if]/>
                            <label>
                                <em title="${p.name}"
                                    style="background-image: url(${p.imgPath});width:135px;height:45px;">&nbsp;</em>
                                ${p.name}
                            </label>
                        </td>
                        [/#list]
                    </tr>
                </table>
                <input type="hidden" name="orderId" value="${order.id}"/>
                <input type="submit" class="paymentButton" value="立即支付"/>
            </form>
            [#else]
            ${order.payment.description!}
            [/#if]
            [/#if]
            [#else]
            订单重复提交！
            [/#if]

        </div>

    </div>
</div>
[#include "../include/footer.html"/]
</body>
</html>
